<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.prime.com.tr/ui">
   <h:head>
      <title>WallFriend - Java EE 6 Starter Application</title>
   </h:head>
   <h:body>
        <h:form>
            <p:growl showDetail="true" />
            <p:panel header="#{myWallView.wall.wallName}'s WALL" style="width:600px">
                <h:panelGrid columns="1">
                    <h:panelGroup>
                        <h:inputTextarea value="#{myWallView.graffiti}" cols="50" rows="3" />
                        <h:commandButton value="Paint" action="#{myWallView.paint}" />
                    </h:panelGroup>
                    <p:dataTable value="#{myWallView.wall.bricks}" var="brick">
                        <p:column>
                            #{brick.graffiti}
                            <br/>
                            <h:outputText value="#{brick.publishDate}">
                                <f:convertDateTime dateStyle="default" type="both" pattern="dd.MM.yyyy HH:mm:ss" />
                            </h:outputText>
                             
                        </p:column>
                    </p:dataTable>
                </h:panelGrid>
            </p:panel>
        </h:form>
   </h:body>
</html>
